package com.itdianzi.service.invoice;

import com.github.pagehelper.PageInfo;
import com.itdianzi.domain.invoice.Invoice;
import com.itdianzi.domain.invoice.InvoiceExample;

import java.util.Date;
import java.util.List;

/**
 * 业务层接口
 */
public interface InvoiceService {

	/**
	 * 保存
	 */
	void save(Invoice invoice);

	/**
	 * 更新
	 */
	void update(Invoice invoice);

	/**
	 * 删除
	 */
	void delete(String id);

	/**
	 * 根据id查询
	 */
	Invoice findById(String id);

	/**
	 * 分页查询
	 */
	PageInfo findAll(InvoiceExample example, int page, int size);

	//查金额用
    Double findByMoney(String invoiceId, Date date);

	List<Invoice> findAll(InvoiceExample invoiceExample);
}
